Skip to content

Conversation

@mrodm
Copy link
Collaborator

@mrodm mrodm commented Dec 3, 2025

Proposed commit message

Removed unused variables in Buildkite hooks.

The variables TMP_FOLDER_TEMPLATE and TMP_FOLDER_TEMPLATE_BASE were used before migrating to GCP OIDC #13856

Tested failure in post-checkout hook: 6656ead

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

Author's Checklist

  • No usages of TMP_FOLDER_TEMPLATE in .buildkite/scripts folder
  • Test failure in post-checkout hook

Related issues

@mrodm mrodm self-assigned this Dec 3, 2025
Comment on lines -48 to -53
cleanup() {
echo "Deleting temporary files..."
rm -rf ${WORKSPACE}/${TMP_FOLDER_TEMPLATE_BASE}.*
echo "Done."
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, there is no folder created with mktemp with those variables as a template.
So I think this cleanup function can be deleted.

Comment on lines -28 to -29
export TMP_FOLDER_TEMPLATE_BASE="tmp.${REPO_NAME}"
export TMP_FOLDER_TEMPLATE="${TMP_FOLDER_TEMPLATE_BASE}.XXXXXXXXX"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were used in the past to create temporal folders to store the google_credentials.json file. But this was migrated in favor of using GCP OIDC (#13856)

https://github.com/elastic/integrations/pull/13856/files#diff-68c0021e761ebe6b8a42d32dfdf3dda2200f0f2fee50106c85c9aea530ccf3c3L261-L262

@mrodm mrodm marked this pull request as ready for review December 3, 2025 17:32
@mrodm mrodm requested a review from a team as a code owner December 3, 2025 17:32
@elasticmachine
Copy link

elasticmachine commented Dec 3, 2025

💔 Build Failed

Failed CI Steps

History

cc @mrodm

@elastic-vault-github-plugin-prod

🚀 Benchmarks report

Package m365_defender 👍(2) 💚(4) 💔(2)

Expand to view
Data stream Previous EPS New EPS Diff (%) Result
incident 1067.24 857.49 -209.75 (-19.65%) 💔
vulnerability 10204.08 8223.68 -1980.4 (-19.41%) 💔

Package o365 👍(1) 💚(0) 💔(1)

Expand to view
Data stream Previous EPS New EPS Diff (%) Result
audit 2159.83 1569.86 -589.97 (-27.32%) 💔

To see the full report comment with /test benchmark fullreport

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants